package com.cennavi.buss.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.cennavi.buss.service.imp.IReportService;
import com.cennavi.minemap.bean.MessageBean;


@RestController
@RequestMapping("/service/report")
public class ReportController {

	@Autowired
	private IReportService iReportService;
	
	@RequestMapping(method = RequestMethod.POST, value = "/{id}", produces = "application/json;charset=UTF-8")
	public @ResponseBody MessageBean queryReport(@PathVariable int id, @RequestBody String json) {
		return iReportService.queryReport(id, json);
	}
}
